gdkkeys-win32: Only perform substitution as last-resort
authorPhilip Zander <philip.zander@gmail.com>
Sun, 27 Feb 2022 15:32:59 +0000 (16:32 +0100)
committerPhilip Zander <philip.zander@gmail.com>
Sun, 27 Feb 2022 15:40:58 +0000 (16:40 +0100)
commite5a4b91997a01f67e883821eed47620db6883b15
tree3112196b8a2913857a9739279fb00ff81f718080
parent885b34d3829d622245b5b366516286b833e28b46
gdkkeys-win32: Only perform substitution as last-resort

Instead of performing keyboard layout substitution whenever we find a matching
entry in the registry, first try to load the original layout and only attempt
substitution when that fails.

See #4724
gdk/win32/gdkkeys-win32.c